/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.skycode.segu.manager;

import com.skycode.core.exception.DAOException;
import com.skycode.core.hibernate.dao.DAOSkycode;
import com.skycode.core.manager.ComunManager;
import com.skycode.segu.dto.UsuarioDto;
import java.io.Serializable;
import javax.annotation.Resource;
import org.apache.log4j.Logger;
import org.springframework.stereotype.Service;

/**
 * @author SkyCode (skycode@gmail.com)
 * @since 07/02/2014
 * @version 1.0
 */
@Service
public class UsuarioManager extends ComunManager<UsuarioDto> implements Serializable {
    
    private static Logger logger = org.apache.log4j.Logger.getLogger(UsuarioManager.class);
    
    @Resource
    private DAOSkycode<UsuarioDto> springHibernateDao;
    
    public UsuarioDto obtenerPorId(Long id ) throws DAOException {
        return springHibernateDao.obtenerDtoPorId(UsuarioDto.class, id);
    }
}
